/*
 * Copyright 2007 National Bioinformatics Network
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package dgbgui.gui;

import dgbgui.gui.event.DoubleClickDefinitionEventHandler;
import dgbgui.gui.event.DragSelectedEventHandler;
import dgbgui.gui.event.GroupSelectionEventHandler;
import dgbgui.gui.event.MinimizeMaximizeEventHandler;
import dgbgui.gui.event.PanEventHandler;
import dgbgui.gui.event.SelectionEventHandler;
import dgbgui.gui.event.ToFrontEventHandler;
import dgbgui.gui.event.WheelZoomEventHandler;
import dgbgui.gui.event.ZoomEventHandler;

@SuppressWarnings("serial")
public class DefaultCanvasView extends GraphicsView {
    
    
    public DefaultCanvasView(DefaultCanvasScene scene) {
        super(scene);
        
        // Add the zoom and pan default event handlers
        m_inputEventHandlers.add(new ToFrontEventHandler());
        
        m_inputEventHandlers.add(new MinimizeMaximizeEventHandler());
        m_inputEventHandlers.add(new SelectionEventHandler());
        m_inputEventHandlers.add(new DoubleClickDefinitionEventHandler());

        // Dragging
        m_inputEventHandlers.add(new DragSelectedEventHandler());
        m_inputEventHandlers.add(new GroupSelectionEventHandler());
        m_inputEventHandlers.add(new ZoomEventHandler());
        m_inputEventHandlers.add(new PanEventHandler());
        
        m_inputEventHandlers.add(new WheelZoomEventHandler());

        
    }

}
